package com.example.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.domain.entity.Diary;
import com.example.exception.FloraException;

import java.util.List;
import java.util.Map;


/**
 * (Diary)表服务接口
 *
 * @author makejava
 * @since 2022-11-30 16:38:57
 */
public interface DiaryService extends IService<Diary> {

    IPage<Diary> findDiary(Map<String, Object> condition, Integer pageNum, Integer pageSize);

    Diary addDiary(Diary diary) throws FloraException;

    void deleteDiary(Long id) throws FloraException;

    void updateDiary(Diary diary) throws FloraException;

    List<Diary> getDiaryByPlantId(Long plantId);

    //List<Diary> gerDiaryByPlantId(Long plantId);

}

